let path = require("path");
module.exports = {
  //入口文件
  entry: "./src/index.js",
  output: {
    //   输出文件名称
    filename: "bundle.js",
    //输出路径-绝对路径
    path: path.resolve(__dirname, "dist"),
  },
  // 模式
  mode: "development",
};
